Part Number Hot Search : 
2902001 LM193P SP6656 F120M 0PA4330 CBT3251D KX27M15C D74HC4
Product Description
Full Text Search
 

To Download S12TIM16B4CVD Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Freescale Semiconductor, Inc.
DOCUMENT NUMBER S12TIM16B4CV1/D
TIM_16B4C Block Guide V1.0
Freescale Semiconductor, Inc...
Original Release Date: 09 Nov 2001 Revised: 07 Dec 2001
8/16 Bit Division, TSPG, Austin Motorola, Inc
Motorola reserves the right to make changes without further notice to any products herein to improve reliability, function or design. Motorola does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part.
1 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Revision History
Version Number
0.1 1.0
Revision Dates
07 Dec 2001 03 Dec 2001
Effective Date
Author
Description of Changes
This specification draft has been generated using TIM_16B8C V01.07 as the reference spec. Modifications made following the review
03 Dec 2001
Freescale Semiconductor, Inc...
2 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide Section 1 Introduction
1.1 1.2 1.3 1.4 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Block Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Section 2 Signal Description
2.1 2.2 2.2.1 2.2.2 2.2.3 2.2.4 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Detailed Signal Descriptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 IOC7 - Input capture and Output compare channel 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 IOC6 - Input capture and Output compare channel 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 IOC5 - Input capture and Output compare channel 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 IOC4 - Input capture and Output compare channel 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Freescale Semiconductor, Inc...
Section 3 Memory Map and Registers
3.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.2 Module Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.3 Register Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3.1 Timer Input Capture/Output Compare Select (TIOS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3.2 Timer Compare Force Register (CFORC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3.3 Output Compare 7 Mask Register (OC7M) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.3.4 Output Compare 7 Data Register (OC7D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.5 Timer Count Register (TCNT). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.6 Timer System Control Register 1 (TSCR1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.7 Timer Toggle On Overflow Register 1 (TTOV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3.8 Timer Control Register 1 (TCTL1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3.9 Timer Control Register 3 (TCTL3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3.10 Timer Interrupt Enable Register (TIE). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3.11 Timer System Control Register 2 (TSCR2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3.12 Main Timer Interrupt Flag 1 (TFLG1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3.13 Main Timer Interrupt Flag 2 (TFLG2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.3.14 Timer Input Capture/Output Compare Registers (TC4 - TC7) . . . . . . . . . . . . . . . . . . . . . . . . 21 3.3.15 16-Bit Pulse Accumulator Control Register (PACTL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.3.16 Pulse Accumulator Flag Register (PAFLG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.3.17 Pulse Accumulators Count Registers (PACNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.3.18 Timer Test Register (TIMTST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Section 4 Functional Description
4.1 4.2 4.3 4.4 4.5 4.5.1 4.5.2 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Input Capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Output Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Pulse Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Event Counter Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Gated Time Accumulation Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Section 5 Resets
Freescale Semiconductor, Inc...
5.1
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Section 6 Interrupts
6.1 6.2 6.2.1 6.2.2 6.2.3 6.2.4 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Description of Interrupt Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Channel [7:4] Interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Pulse Accumulator Input Interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Pulse Accumulator Overflow Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Timer Overflow Interrupt (TOF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
4 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Figure 1-1 Figure 4-1 Figure 4-2 Timer Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Detailed Timer Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Pulse Accumulator System Block Diagram . . . . . . . . . . . . . . . . . . . . 28
Freescale Semiconductor, Inc...
5 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
6 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Table 3-1 Table 3-2 Table 3-3 Table 3-4 Table 3-5 Table 3-6 Table 6-1 Module Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Compare Result Output Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Edge Detector Circuit Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Timer Clock Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Pin Action . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Timer Clock Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 TIM_16B4C Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Freescale Semiconductor, Inc...
7 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
8 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Section 1 Introduction
1.1 Overview
The basic timer consists of a 16-bit, software-programmable counter driven by a seven-stage programmable prescaler. This timer can be used for many purposes, including input waveform measurements while simultaneously generating an output waveform. Pulse widths can vary from microseconds to many seconds. This timer contains 4 complete input capture/output compare channels [IOC 7:4] and one pulse accumulator. The input capture function is used to detect a selected transition edge and record the time. The output compare function is used for generating output signals or for timer software delays.The 16-bit pulse accumulator is used to operate as a simple event counter or a gated time accumulator.The pulse accumulator shares timer channel 7 pin when in event mode. A full access for the counter registers or the input capture/output compare registers should take place in one clock cycle. Accessing high byte and low byte separately for all of these registers may not yield the same result as accessing them in one word.
Freescale Semiconductor, Inc...
1.2 Features
The TIM_16B4C includes these distinctive features: * * * * Four input capture/output compare channels. Clock prescaling. 16-bit counter. 16-bit pulse accumulator.
1.3 Modes of Operation
STOP: Timer is off since clocks are stopped.
FREEZE: Timer counter keeps running, unless TSFRZ in TSCR($06) is set to one. WAIT: Counters keeps running, unless TSWAI in TSCR ($06) is set to one.
NORMAL:Timer counter keeps running, unless TEN in TSCR($06) is cleared.
9 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
1.4 Block Diagrams
Figure 1-1 Timer Block Diagram
Bus clock
Prescaler
16-bit Counter
Freescale Semiconductor, Inc...
Timer overflow interrupt
Registers Timer channel 4 interrupt
Channel 4 Input capture Output compare Channel 5 Input capture Output compare Channel 6 Input capture Output compare
IOC4
IOC5
Timer channel 7 interrupt
IOC6
PA overflow interrupt PA input interrupt
16-bit Pulse accumulator
Channel 7 Input capture Output compare
IOC7
For more information see the respective functional descriptions in (see Section 4 Functional Description) of this document.
10 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Section 2 Signal Description
2.1 Overview
The TIM_16B4C module has a total 4 external pins.
2.2 Detailed Signal Descriptions
2.2.1 IOC7 - Input capture and Output compare channel 7
This pin serves as input capture or output compare for channel 7.This pin can also be configured as pulse accumulator input.
Freescale Semiconductor, Inc...
2.2.2 IOC6 - Input capture and Output compare channel 6
This pin serves as input capture or output compare for channel 6.
2.2.3 IOC5 - Input capture and Output compare channel 5
This pin serves as input capture or output compare for channel 5.
2.2.4 IOC4 - Input capture and Output compare channel 4
This pin serves as input capture or output compare for channel 4. NOTE: For the description of interrupts (see Section 6 Interrupts).
11 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Section 3 Memory Map and Registers
3.1 Overview
This section provides a detailed description of all memory and registers.
3.2 Module Memory Map
The memory map for the TIM_16B4C module is given below in Table 3-1. The Address listed for each register is the address offset. The total address for each register is the sum of the base address for the TIM_16B4C module and the address offset for each register. Table 3-1 Module Memory Map
Freescale Semiconductor, Inc...
Offset
$_00 $_01 $_02 $_03 $_04 $_05 $_06 $_07 $_08 $_09 $_0A $_0B $_0C $_0D $_0E $_0F $_10 - $_17 $_18 $_19 $_1A $_1B $_1C $_1D $_1E $_1F $_20 $_21
Use
Timer Input Capture/Output Compare Select (TIOS) Timer Compare Force Register (CFORC) Output Compare 7 Mask Register (OC7M) Output Compare 7 Data Register (OC7D) Timer Count Register (TCNT(hi)) Timer Count Register (TCNT(lo)) Timer System Control Register1 (TSCR1) Timer Toggle Overflow Register (TTOV) Timer Control Register1 (TCTL1) Reserved Timer Control Register3 (TCTL3) Reserved Timer Interrupt Enable Register (TIE) Timer System Control Register2 (TSCR2) Main Timer Interrupt Flag1 (TFLG1) Main Timer Interrupt Flag2 (TFLG2) Reserved Timer Input Capture/Output Compare Register4 (TC4(hi)) Timer Input Capture/Output Compare Register4 (TC4(lo)) Timer Input Capture/Output Compare Register5 (TC5(hi)) Timer Input Capture/Output Compare Register5 (TC5(lo)) Timer Input Capture/Output Compare Register6 (TC6(hi)) Timer Input Capture/Output Compare Register6 (TC6(lo)) Timer Input Capture/Output Compare Register7 (TC7(hi)) Timer Input Capture/Output Compare Register7 (TC7(lo)) 16-Bit Pulse Accumulator Control Register (PACTL) Pulse Accumulator Flag Register (PAFLG)
Access
Read/Write Read/Write1 Read/Write Read/Write Read/Write2 Read/Write2 Read/Write Read/Write Read/Write Write has no effect Read returns zero Read/Write Write has no effect Read retunrs zero Read/Write Read/Write Read/Write Read/Write Write has no effect Read returns zero Read/Write3 Read/Write3 Read/Write3 Read/Write3 Read/Write3 Read/Write3 Read/Write3 Read/Write3 Read/Write Read/Write
12 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Table 3-1 Module Memory Map
$_22 $_23 $_24 - $_2C $_2D $-2E - $_2F Pulse Accumulator Count Register (PACNT(hi)) Pulse Accumulator Count Register (PACNT(lo)) Reserved Timer Test Register (TIMTST) Reserved Read/Write Read/Write Write has no effect Read returns zero Read/Write2 Write has no effect Read retuns zero
NOTE: 1. Always read $00.
Freescale Semiconductor, Inc...
2. Only writable in special modes. (Refer to SOC Guide for different modes). 3. Write to these registers have no meaning or effect during input capture.
3.3 Register Descriptions
This section consists of register descriptions in address order.Each description includes a standard register diagram with an associated figure number. Details of register bit and field function follow the register diagrams, in bit order.
3.3.1 Timer Input Capture/Output Compare Select (TIOS)
Register offset: $_00 Bit 7 R W RESET: IOS7 0 6 IOS6 0 5 IOS5 0 = Reserved 4 IOS4 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
Read or write anytime. IOS[7:4] -- Input Capture or Output Compare Channel Configuration 1 = The corresponding channel acts as an output compare. 0 = The corresponding channel acts as an input capture.
3.3.2 Timer Compare Force Register (CFORC)
Register offset:$_01 Bit 7 R W RESET: 0 FOC7 0 6 0 FOC6 0 5 0 FOC5 0 = Reserved 4 0 FOC4 0 0 0 0 0 3 0 2 0 1 0 Bit 0 0
Read anytime but will always return $00. Write anytime.
13 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
FOC[7:4] -- Force Output Compare Action for Channel 7-4 1 = Force Output Compare Action enabled 0 = Force Output Compare Action disabled A write to this register with the corresponding (FOC 7:4) data bit(s) set causes the action programmed for output compare on channel "n" to occur immediately.The action taken is the same as if a successful comparison had just taken place with the TCn register except the interrupt flag does not get set. NOTE: A successful channel 7 output compare overrides any channel 6:4 compares. If forced output compare on any channel occurs at the same time as the successful output compare then forced output compare action will take precedence and interrupt flag will not get set.
Freescale Semiconductor, Inc...
3.3.3 Output Compare 7 Mask Register (OC7M)
Register offset:$_02
Bit 7 R W RESET: OC7M7 0 6 OC7M6 0 5 OC7M5 0 = Reserved 4 OC7M4 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
Read or write anytime. OC7Mn -- Output Compare 7 Mask "n" Channel bit 1 = sets the corresponding port to be an output port when this corresponding TIOS bit is set to be an output compare 0 = does not set the corresponding port to be an output port Setting the OC7Mn (n ranges from 4 to 6) will set the corresponding port to be an output port when the corresponding TIOSn (n ranges from 4 to 6) bit is set to be an output compare. NOTE: A successful channel 7 output compare overrides any channel 6:4 compares.For each OC7M bit that is set, the output compare action reflects the corresponding OC7D bit.
14 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide 3.3.4 Output Compare 7 Data Register (OC7D)
Register offset:$_03
Bit 7 R W RESET: OC7D7 0 6 OC7D6 0 5 OC7D5 0 = Reserved 4 OC7D4 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
Read or write anytime. OC7Dn -- Output Compare 7 Data for Channel "n"
Freescale Semiconductor, Inc...
A channel 7 output compare will cause bits in the output compare 7 data register to transfer to the timer port data register if the corresponding output compare 7 mask register bits are set.
3.3.5 Timer Count Register (TCNT)
Register offset:$_04-$_05
Bit 15 R W RESET: 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Bit 0
tcnt 15 tcnt 14 tcnt 13 tcnt 12 tcnt 11 tcnt 10 tcnt 9 tcnt 8 tcnt 7 tcnt 6 tcnt 5 tcnt 4 tcnt 3 tcnt 2 tcnt 1 tcnt t 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Read anytime. Writable only in special mode (refer for SOC guide for special modes). The 16-bit main timer is an up counter. A full access for the counter register should take place in one clock cycle. A separate read/write for high byte and low byte will give a different result than accessing them as a word. The period of the first count after a write to the TCNT registers may be a different length because the write is not synchronized with the prescaler clock.
3.3.6 Timer System Control Register 1 (TSCR1)
Register offset:$_06
Bit 7 R W RESET: TEN 0 6 TSWAI 0 5 TSFRZ 0 = Reserved 4 TFFCA 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
Read or write anytime.
15 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
TEN -- Timer Enable 1 = Enables the timer. 0 = Disables the timer. (Used for reducing power consumption). If for any reason the timer is not active, there is no divide by 64 clock for the pulse accumulator since the divide by 64 clock is generated by the timer prescaler. TSWAI -- Timer Module Stops While in Wait 1 = Disables the timer and pulse accumulator when the MCU is in the wait mode. Timer interrupts cannot be used to get the MCU out of wait mode. 0 = Allows the timer and the pulse accumulator to continue running during the wait mode. TSFRZ -- Timer Stops While in Freeze Mode 1 = Disables the timer counter whenever the MCU is in freeze mode. This is useful for emulation. 0 = Allows the timer counter to continue running while in freeze mode. TSFRZ does not stop the pulse accumulator. TFFCA -- Timer Fast Flag Clear All 1 = For TFLG1 register, a read from an input capture or a write to the output compare channel [TC 7:4] causes the corresponding channel flag, CnF, to be cleared.For TFLG2 register, any access to the TCNT register clears the TOF flag .Any access to the PACNT registers clears the PAOVF and PAIF bits in the PAFLG register. This has the advantage of eliminating software overhead in a separate clear sequence. Extra care is required to avoid accidental flag clearing due to unintended accesses. 0 = Allows the timer flag clearing.
Freescale Semiconductor, Inc...
3.3.7 Timer Toggle On Overflow Register 1 (TTOV)
Register offset:$_07
Bit 7 R TOV7 W RESET 0 0 0 = Reserved 0 0 0 0 0 TOV6 TOV5 TOV4 6 5 4 3 0 2 0 1 0 Bit 0 0
Read or write anytime. TOVn -- Toggle On Overflow Bits 1 = Toggle output compare pin on overflow feature enabled. 0 = Toggle output compare pin on overflow feature disabled. TOVn toggles output compare pin on overflow. This feature only takes effect when the corresponding channel is configured for an output compare mode. When set, an overflow toggle on the output compare pin takes precedence over forced output compare but not channel 7 override events.
16 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide 3.3.8 Timer Control Register 1 (TCTL1)
Register offset:$_08
Bit 7 R OM7 W RESET 0 0 0 0 0 0 0 0 OL7 OM6 OL6 OM5 OL5 OM4 OL4 6 5 4 3 2 1 Bit 0
Read or write anytime. OMn -- Output Mode bit
Freescale Semiconductor, Inc...
OLn -- Output Level bit. These four pairs of control bits are encoded to specify the output action to be taken as a result of a successful Ouptput Compare on "n" channel. When either OMn or OLn is one, the pin associated with the corresponding channel becomes an output tied to its IOC. To enable output action by OMn and OLn bits on timer port, the corresponding bit in OC7M should be cleared. Table 3-2 Compare Result Output Action
OMn
0 0 1 1
OLn
0 1 0 1
Action
Timer disconnected from output pin logic Toggle OCn output line Clear OCn output line to zero Set OCn output line to one
To operate the 16-bit pulse accumulator independently of input capture or output compare 7 and 4 respectively the user must set the corresponding bits IOSn = 1, OMn = 0, OLn = 0 and OC7M7 = 0
3.3.9 Timer Control Register 3 (TCTL3)
Register offset:$_0A
Bit 7 R EDG7B W RESET 0 0 0 0 0 0 0 0 EDG7A EDG6B EDG6A EDG5B EDG5A EDG4B EDG4A 6 5 4 3 2 1 Bit 0
Read or write anytime. EDGnB, EDGnA -- Input Capture Edge Control These four pairs of control bits configure the input capture edge detector circuits.
17 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Table 3-3 Edge Detector Circuit Configuration
EDGnB
0 0 1 1
EDGnA
0 1 0 1
Configuration
Capture disabled Capture on rising edges only Capture on falling edges only Capture on any edge (rising or falling)
3.3.10 Timer Interrupt Enable Register (TIE)
Register offset:$_0C
Bit 7 6 C6I 0 5 C5I 0 = Reserved 4 C4I 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
Freescale Semiconductor, Inc...
R W RESET:
C7I 0
Read or write anytime. C7I-C4I -- Input Capture/Output Compare Interrupt Enable. 1 = Enables corresponding Interrupt flag (CnF of TFLG1 register) to cause a hardware interrupt 0 = Disables corresponding Interrupt flag (CnF of TFLG1 register) from causing a hardware interrupt
3.3.11 Timer System Control Register 2 (TSCR2)
Register offset:$_0D
Bit 7 R W RESET: TOI 0 6 0 0 5 0 0 = Reserved 4 0 0 3 TCRE 0 2 PR2 0 1 PR1 0 Bit 0 PR0 0
Read or write anytime. TOI -- Timer Overflow Interrupt Enable 1 = Hardware interrupt requested when TOF flag set in TFLG2 register. 0 = Hardware Interrupt request inhibited. TCRE -- Timer Counter Reset Enable 1 = Enables Timer Counter reset by a successful output compare on channel 7 0 = Inhibits Timer Counter reset and counter continues to run.
18 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
This mode of operation is similar to an up-counting modulus counter. If register TC7 = $0000 and TCRE = 1, the timer counter register (TCNT) will stay at $0000 continuously. If register TC7 = $FFFF and TCRE = 1, TOF will not be set when the timer counter register (TCNT) is reset from $FFFF to $0000. PR2, PR1, PR0 -- Timer Prescaler Select These three bits select the frequency of the timer prescaler clock derived from the Bus Clock as shown in Table 3-4. Table 3-4 Timer Clock Selection
PR2
0 0
PR1
0 0 1 1 0 0 1 1
PR0
0 1 0 1 0 1 0 1
Timer Clock
Bus Clock / 1 Bus Clock / 2 Bus Clock / 4 Bus Clock / 8 Bus Clock / 16 Bus Clock / 32 Bus Clock / 64 Bus Clock / 128
Freescale Semiconductor, Inc...
0 0 1 1 1 1
The newly selected prescale factor will not take effect until the next synchronized edge where all prescale counter stages equal zero.
3.3.12 Main Timer Interrupt Flag 1 (TFLG1)
Register offset:$_0E
Bit 7 R W RESET: C7F 0 6 C6F 0 5 C5F 0 = Reserved 4 C4F 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
Read anytime. C7F-C4F -- Input Capture/Output Compare Channel Flag. 1 = Input Capture or Output Compare event occured 0 = No event (Input Capture or Output Compare event) occured. These flags are set when an input capture or output compare event occurs. Flag set on a particular channel is cleared by writing a one to that corresponding CnF bit. Writing a zero to CnF bit has no effect on its status. When TFFCA bit in TSCR register is set, a read from an input capture or a write into an output compare channel will cause the corresponding channel flag CnF to be cleared.
19 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
3.3.13 Main Timer Interrupt Flag 2 (TFLG2)
Register offset:$_0F
Bit 7 R W RESET: TOF 0 6 0 0 5 0 0 4 0 0 3 0 0 2 0 0 1 0 0 Bit 0 0 0
= Unimplemented or Reserved
Read anytime. TOF -- Timer Overflow Flag 1 = Flag indicates that an Interrupt has occured (Set when 16-bit free-running timer counter overflows from $FFFF to $0000) 0 = Flag indicates an Interrupt has not occured. The TFLG2 register indicates when an interrupt has occurred. Writing a one to the TOF bit will clear it. Any access to TCNT will clear TOF bit of TFLG2 register if the TFFCA bit in TSCR register is set.
Freescale Semiconductor, Inc...
20 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide 3.3.14 Timer Input Capture/Output Compare Registers (TC4 - TC7)
TC4 --Register offset:$_18-$_19
Bit 15 R W RESET tc4 15 0 14 tc4 14 0 13 tc4 13 0 12 tc4 12 0 11 tc4 11 0 10 tc4 10 0 9 tc4 9 0 8 tc4 8 0 7 tc4 7 0 6 tc4 6 0 5 tc4 5 0 4 tc4 4 0 3 tc4 3 0 2 tc4 2 0 1 tc4 1 0 Bit 0 tc4 0 0
TC5 --Register offset:$_1A-$_1B
Bit 15 R W RESET tc5 15 0 14 tc5 14 0 13 tc5 13 0 2 tc5 12 0 11 tc5 11 0 10 tc5 10 0 9 tc5 9 0 8 tc5 8 0 7 tc5 7 0 6 tc5 6 0 5 tc5 5 0 4 tc5 4 0 3 tc5 3 0 2 tc5 2 0 1 tc5 1 0 Bit 0 tc5 0 0
Freescale Semiconductor, Inc...
TC6 --Register offset:$_1C-$_1D
Bit 15 R W RESET tc6 15 0 14 tc6 14 0 13 tc6 13 0 12 tc6 12 0 11 tc6 11 0 10 tc6 10 0 9 tc6 9 0 8 tc6 8 0 7 tc6 7 0 6 tc6 6 0 5 tc6 5 0 4 tc6 4 0 3 tc6 3 0 2 tc6 2 0 1 tc6 1 0 Bit 0 tc6 0 0
TC7 --Register offset:$_1E-$_1F
Bit 15 R W RESET tc7 15 0 14 tc7 14 0 13 tc7 13 0 2 tc7 12 0 11 tc7 11 0 0 tc7 10 0 9 tc7 9 0 8 tc7 8 0 7 tc7 7 0 6 tc7 6 0 5 tc7 5 0 4 tc7 4 0 3 tc7 3 0 2 tc7 2 0 1 tc7 1 0 Bit 0 tc7 0 0
Read anytime. Write anytime for output compare function. Writes to these registers have no effect during input capture. Depending on the TIOS bit for the corresponding channel, these registers are used to latch the value of the free-running counter when a defined transition is sensed by the corresponding input capture edge detector or to trigger an output action for output compare. NOTE: Read/Write access in byte mode for high byte should takes place before low byte otherwise it will give a different result.
21 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
3.3.15 16-Bit Pulse Accumulator Control Register (PACTL)
Register offset:$_20
BIT 7 R W RESET: 0 0 6 PAEN 0 5 PAMOD 0 = Reserved 4 PEDGE 0 3 CLK1 0 2 CLK0 0 1 PAOVI 0 BIT 0 PAI 0
Read: any time Write: any time PAEN -- Pulse Accumulator System Enable 1 = Pulse Accumulator system enabled. 0 = Pulse Accumulator system disabled. PAEN is independent from TEN. With timer disabled, the pulse accumulator can still function unless pulse accumulator is disabled. When PAEN is set, the PACT is enabled. The PACT shares the input pin with IOC7. PAMOD -- Pulse Accumulator Mode This bit is active only when the Pulse Accumulator is enabled (PAEN = 1). 1 = gated time accumulation mode. 0 = event counter mode. PEDGE -- Pulse Accumulator Edge Control This bit is active only when the Pulse Accumulator is enabled (PAEN = 1). For PAMOD bit = 0 (event counter mode). 1 = rising edges on IOC7 pin cause the count to be incremented. 0 = falling edges on IOC7 pin cause the count to be incremented. For PAMOD bit = 1 (gated time accumulation mode). 1 = IOC7 input pin low enables M (bus clock) divided by 64 clock to Pulse Accumulator and the trailing rising edge on IOC7 sets the PAIF flag. 0 = IOC7 input pin high enables M (bus clock) divided by 64 clock to Pulse Accumulator and the trailing falling edge on IOC7 sets the PAIF flag. Table 3-5 Pin Action
PAMOD
0 0 1 1
Freescale Semiconductor, Inc...
PEDGE
0 1 0 1
Pin Action
Falling edge Rising edge Div. by 64 clock enabled with pin high level Div. by 64 clock enabled with pin low level
If the timer is not active (TEN = 0 in TSCR), there is no divide-by-64 since the divide by 64 clock is generated by the timer prescaler. CLK1, CLK0 -- Clock Select Bits
22 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Table 3-6 Timer Clock Selection
CLK1
0 0 1 1
CLK0
0 1 0 1
Timer Clock
Use timer prescaler clock as timer counter clock Use PACLK as input to timer counter clock Use PACLK/256 as timer counter clock frequency Use PACLK/65536 as timer counter clock frequency
For the description of PACLK please refer (see Figure 4-2 Pulse Accumulator System Block Diagram). If the pulse accumulator is disabled (PAEN = 0), the prescaler clock from the timer is always used as an input clock to the timer counter. The change from one selected clock to the other happens immediately after these bits are written.
Freescale Semiconductor, Inc...
PAOVI -- Pulse Accumulator Overflow Interrupt enable 1 = interrupt requested if PAOVF bit of PFLG register is set. 0 = interrupt inhibited. PAI -- Pulse Accumulator Input Interrupt enable 1 = interrupt requested if PAIF bit of PAFLG register is set. 0 = interrupt inhibited.
3.3.16 Pulse Accumulator Flag Register (PAFLG)
Register offset:$_21
BIT 7 R W RESET: 0 0 0 = Reserved 0 0 0 0 6 0 5 0 4 0 3 0 2 0 1 PAOVF 0 BIT 0 PAIF 0
Read or write anytime. PAOVF -- Pulse Accumulator Overflow Flag 1 = Flag indicates overflow condition of pulse accumulator counter from $FFFF to $0000. 0 = Flag indicates that there is no overflow condition of pulse accumulator counter. Writing a one to this bit clears it, writing a zero has not effect. PAIF -- Pulse Accumulator Input edge Flag 1 = Flag indicates that the selected edge is detected on the IOC7 input pin. 0 = Flag indicates that no selected edge has been detected on the IOC7 input pin. In event mode the event edge triggers PAIF and in gated time accumulation mode the trailing edge of the gate signal at the IOC7 input pin triggers PAIF. Writing a one to this bit clears it, writing a zero has not effect. Any access to the PACNT register will clear all the flags in this register when TFFCA bit of TSCR register is set.
23 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
3.3.17 Pulse Accumulators Count Registers (PACNT)
Register offset:$_22-$_23
Bit 15 R W RESET: pacnt 15 0 14 pacnt 14 0 13 pacnt 13 0 12 pacnt 12 0 11 pacnt 11 0 10 pacnt 10 0 9 pacnt 9 0 8 pacnt 8 0 7 pacnt 7 0 6 pacnt 6 0 5 pacnt 5 0 4 pacnt 4 0 3 pacnt 3 0 2 pacnt 2 0 1 pacnt 1 0 Bit 0 pacnt 0 0
Read or write any time. When PACNT overflows from $FFFF to $0000, the PAOVF bit of PAFLG register is set. These registers contain the number of active input edges on TOC7 input pin since the last reset. Full count register access should take place in one clock cycle. A separate read/write for high byte and low byte will give a different result than accessing them as a word. NOTE: Reading the pulse accumulator counter registers immediately after an active edge on the pulse accumulator input pin may miss the last count since the input has to be synchronized with the bus clock first.
Freescale Semiconductor, Inc...
24 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Section 4 Functional Description
4.1 General
This section provides a complete functional description of the timer TIM_16B4C block. Please refer to the detailed timer block diagram in Figure 4-1 as necessary. Figure 4-1 Detailed Timer Block Diagram
Bus Clock
CLK[1:0] PR[2:1:0] PACLK PACLK/256 PACLK/65536
channel 7 output compare
MUX TCRE CxI
Freescale Semiconductor, Inc...
PRESCALER
TCNT(hi):TCNT(lo) CLEAR COUNTER 16-BIT COUNTER TE CHANNEL 4 16-BIT COMPARATOR TC4 EDG4A EDG4B EDGE DETECT C4F OM:OL4 TOV4
CxF TOF TOI
INTERRUPT LOGIC
TOF
C4F
CH. 4 CAPTURE
IOC4 PIN LOGIC CH. 4 COMPARE IOC4 PIN
IOC4
CHANNEL7 16-BIT COMPARATOR TC7 EDG7A EDG7B EDGE DETECT C7F OM:OL7 TOV7
C7F
CH.7 CAPTURE PA INPUT IOC7 PIN LOGIC CH. 7 COMPARE
IOC7 PIN
IOC7
PAOVF
PACNT(hi):PACNT(lo)
PEDGE PAE
EDGE DETECT
PACLK/65536 PACLK/256 INTERRUPT REQUEST PAOVI PAOVF
16-BIT COUNTER PACLK PAMOD INTERRUPT LOGIC DIVIDE-BY-64 PAI PAIF PAIF
Bus Clock
PAOVF PAOVI
25 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
4.2 Prescaler
The prescaler divides the bus clock by 1,2,4,8,16,32,64 or 128. The prescaler select bits, PR[2:0], select the prescaler divisor. PR[2:0] are in timer system control register 2 (TSCR2).
4.3 Input Capture
Clearing the I/O (input/output) select bit, IOSn, configures channel n as an input capture channel. The input capture function captures the time at which an external event occurs. When an active edge occurs on the pin of an input capture channel, the timer transfers the value in the timer counter into the timer channel registers, TCn. The minimum pulse width for the input capture input is greater than two bus clocks.
Freescale Semiconductor, Inc...
An input capture on channel n sets the CnF flag. The CnI bit enables the CnF flag to generate interrupt requests.
4.4 Output Compare
Setting the I/O select bit, IOSn, configures channel n as an output compare channel. The output compare function can generate a periodic pulse with a programmable polarity, duration, and frequency. When the timer counter reaches the value in the channel registers of an output compare channel, the timer can set, clear, or toggle the channel pin. An output compare on channel n sets the CnF flag. The CnI bit enables the CnF flag to generate interrupt requests. The output mode and level bits, OMn and OLn, select set, clear, toggle on output compare. Clearing both OMn and OLn disconnects the pin from the output logic. Setting a force output compare bit, FOCn, causes an output compare on channel n. A forced output compare does not set the channel flag. A successful output compare on channel 7 overrides output compares on all other output compare channels. The output compare 7 mask register masks the bits in the output compare 7 data register. The timer counter reset enable bit, TCRE, enables channel 7 output compares to reset the timer counter. A channel 7 output compare can reset the timer counter even if the IOC7 pin is being used as the pulse accumulator input. Writing to the timer port bit of an output compare pin does not affect the pin state. The value written is stored in an internal latch. When the pin becomes available for general-purpose output, the last value written to the bit appears at the pin.
4.5 Pulse Accumulator
The pulse accumulator (PACNT) is a 16-bit counter that can operate in two modes: Event counter mode --- Counting edges of selected polarity on the pulse accumulator input pin, IOC7.
26 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Gated time accumulation mode --- Counting pulses from a divide-by-64 clock. The PAMOD bit selects the mode of operation. The minimum pulse width for the PAI input is greater than two bus clocks. The maximum input frequency on the pulse accumulator channel is one half the bus frequency or Eclk. Figure 4-2 Pulse Accumulator System Block Diagram PT7 PAIF PIN LOGIC PIN
Freescale Semiconductor, Inc...
16 BIT CNTR DATA BUS
PA COUNT REG
DIVIDE BY 64
BUS CLOCK
PA CNTRL REG
4.5.1 Event Counter Mode
Clearing the PAMOD bit configures the PACNT for event counter operation. An active edge on the IOC7 pin increments the pulse accumulator counter. The PEDGE bit selects falling edges or rising edges to increment the count. NOTE: The PACNT input and timer channel 7 use the same pin IOC7. To use the IOC7, disconnect it from the output logic by clearing the channel 7 output mode and output level bits, OM7 and OL7. Also clear the channel 7 output compare 7 mask bit, OC7M7.
The Pulse Accumulator counter register reflect the number of active input edges on the PACNT input pin, IOC7 since the last reset. The PAOVF bit is set when the accumulator rolls over from $FFFF to $0000. The pulse accumulator overflow interrupt enable bit, PAOVI, enables the PAOVF flag to generate interrupt requests.
27 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
NOTE:
The pulse accumulator counter can operate in event counter mode even when the timer enable bit, TEN, is clear.
4.5.2 Gated Time Accumulation Mode
Setting the PAMOD bit configures the pulse accumulator for gated time accumulation operation. An active level on the PACNT input pin enables a divided-by-64 clock to drive the pulse accumulator. The PEDGE bit selects low levels or high levels to enable the divided-by-64 clock. The trailing edge of the active level at the IOC7 pin sets the PAIF. The PAI bit enables the PAIF flag to generate interrupt requests. The pulse accumulator counter register reflect the number of pulses from the divided-by-64 clock since the last reset.
Freescale Semiconductor, Inc...
NOTE:
The timer prescaler generates the divided-by-64 clock. If the timer is not active, there is no divided-by-64 clock.
28 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Section 5 Resets
5.1 General
The reset state of each individual bit is listed within the Register Description section (see Section 3 Memory Map and Registers) which details the registers and their bit-fields.
Section 6 Interrupts
6.1 General
Freescale Semiconductor, Inc...
This section describes interrupts originated by the TIM_16B4C block. Table 6-1 lists the interrupts generated by the TIM_16B4C to communicate with the MCU. Table 6-1 TIM_16B4C Interrupts
Interrupt
C[7:4]F PAOVI PAOVF TOF
Offset1
-
Vector1
-
Priority1
-
Source
Timer Channel 7-4 Pulse Accumulator Input Pulse Accumulator Overflow Timer Overflow
Description
Active high timer channel interrupts 7-4 Active high pulse accumulator input interrupt Pulse accumulator overflow interrupt Timer Overflow interrupt
NOTES: 1. Refer to the SoC Guide for information regarding offset, vector and priority..
6.2 Description of Interrupt Operation
The TIM_16B4C uses a total of 7 interrupt vectors. The interrupt vector offsets and interrupt numbers are chip dependent. More information on interrupt vector offsets and interrupt numbers can be found in the System on Chip Guide.
6.2.1 Channel [7:4] Interrupt
These active high outputs is asserted by the module to request a timer channel 7 - 4 interrupt following an input capture or output compare event on these channels [7-4]. For the interrupt to be asserted on a specific channel, the enable, CnI bit of TIE register should be set. These interrupts are serviced by the system controller.
6.2.2 Pulse Accumulator Input Interrupt
This active high output is asserted by the module to request a timer pulse accumulator input interrupt following the configured event on IOC7 input pin (in either modes, event mode and time accumulation mode) when pulse accumulator input interrupt enable, PAI bit in PACTL register is set. This interrupt is serviced by the system controller.
29 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
NOTE:
For more information about event mode operation and gated time accumulation operation of the timers refer to sec. 4 of this document. Further details can be found in creation guide of this module.
6.2.3 Pulse Accumulator Overflow Interrupt
This active high output will be asserted by the module to request a timer pulse accumulator overflow interrupt, following the timer pulse accumulator counter overflow, when the pulse accumulator overflow enable bit, PAOVI of PACTL register is set. This interrupt is serviced by the system controller. NOTE: For more information about event mode operation and gated time accumulation operation of the timers refer to sec. 4 of this document. Further details can be found in creation guide of this module.
Freescale Semiconductor, Inc...
6.2.4 Timer Overflow Interrupt (TOF)
This active high output will be asserted by the module to request a timer overflow interrupt, following the timer counter overflow when the overflow enable bit (TOI) bit of TFLG2 register is set. This interrupt is serviced by the system controller.
30 For More Information On This Product, Go to: www.freescale.com
Freescale Semiconductor, Inc. -- S12TIM16B4CV1 V1.0 Block Guide
Block Guide End Sheet
Freescale Semiconductor, Inc...
33 For More Information On This Product, Go to: www.freescale.com
Block Guide -- S12TIM16B4CV1 V1.0
Freescale Semiconductor, Inc.
Freescale Semiconductor, Inc...
FINAL PAGE OF 34 PAGES
34 For More Information On This Product, Go to: www.freescale.com


▲Up To Search▲   

 
Price & Availability of S12TIM16B4CVD

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X